package com.justgame.project.generator.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "code.generator.template")
public class TemplateProperties {

    /**
     * Mapper层
     */
    private String mapperTemplatePath = "/templates/Mapper.java.ftl";
    private String mapperXMLTemplatePath = "/templates/Mapper.xml.ftl";

    /**
     * controller层
     */
    private String controllerTemplatePath = "/templates/Controller.java.ftl";

    /**
     * domain层
     */
    private String voTemplatePath = "/templates/Vo.java.ftl";
    private String dtoTemplatePath = "/templates/Dto.java.ftl";
    private String entityTemplatePath = "/templates/Entity.java.ftl";
    private String wrapperTemplatePath = "/templates/Wrapper.java.ftl";

    /**
     * Service层
     */
    private String serviceTemplatePath = "/templates/IService.java.ftl";
    private String serviceImplTemplatePath = "/templates/ServiceImpl.java.ftl";
    private String basicServiceInterfaceTemplatePath = "/templates/BasicServiceInterface.java.ftl";

    /**
     * RPC
     */
    private String RpcInterfaceTemplatePath = "/templates/RPCInterface.java.ftl";
    private String RpcFallbackTemplatePath = "/templates/RPCFallback.java.ftl";
    private String RpcImplTemplatePath = "/templates/RPCImpl.java.ftl";

    /**
     * SQL
     */
    private String SQLTemplatePath = "/templates/SQL.sql.ftl";

    /**
     * 查询条件封装
     */
    private String queryTemplatePath = "/templates/Query.java.ftl";
    private String queryFormTemplatePath = "/templates/QueryForm.java.ftl";
}
